import types from "@/store/mutation-types";

const member = {
  state: {
    member_id: 0,
    member_info:{},
    agency: false,
    isApply: false,
    applyData:{
      data:{},
      from:''
    }
  },

  mutations: {
    [types.SET_MEMBER_ID] :(state,member_id) => {
      state.member_id = member_id
    },
    [types.SET_MEMBER_INFO] :(state,row) => {
      state.member_info = row
    },
    [types.SET_AGENCY] :(state,agency) => {
      state.agency = agency
    },
    [types.HIDE_APPLY_MODAL]:(state) =>{
      state.isApply = false
      state.applyData = {}
    },
    [types.SHOW_APPLY_MODAL]:(state,applyData) =>{
      state.isApply = true
      state.applyData = applyData
    }
  },

  actions: {
  }
}

export default member
